package homeWork.day03_5_16;

import java.util.Collection;
import java.util.HashSet;
import java.util.Random;

/**
 * 生成10个0-100之间的不重复的随机数,并输出
 * @author Xiloer
 *
 */
public class Test03 {
	public static void main(String[] args) {
		Collection <Integer>c=new HashSet<>();
		Random ran=new Random();
		for(int i=0;i<10;i++) {
			c.add(ran.nextInt(101));
		}
		for(int i:c){
			System.out.print(i+" ");
		}

	}
}
